import http from "./request"
export const createApi=(obj)=>{
    return http({
        url:'http://localhost:12345/api/order/create',
        method:'POST',
        data:{...obj}
    })
}
export const getOrderApi=(id)=>{
    return http({
        url:'http://localhost:12345/api/order/getOrder/'+id,
        method:'GET',
        params:{}
    })
}
export const payApi=()=>{
    return http({
        url:'http://localhost:12345/api/order/pay',
        method:'POST',
        data:{}
    })
}